<?php
// +----------------------------------------------------------------------
// | 常量环境变量
// +----------------------------------------------------------------------
// | Copyright (c) 2015
// +----------------------------------------------------------------------
// | Author: baiping 125618036@qq.com http://www.webipcode.com
// +----------------------------------------------------------------------
// | 2015-6-26下午4:40:29
// +----------------------------------------------------------------------
if ( ! defined('BASEPATH')) exit('No direct script access allowed');

define('CIYP_VERSION', 'V1.0.0');//项目版本号
define('CIYP_SHARE_PATH', BASEPATH . '../share/');//项目共享路径

define('__STATIC__', '/public/static/');//页面静态地址
define('__ADMIN__', '/public/admin/');//后台管理页面静态地址

// 定义当前请求的系统常量
define('NOW_TIME',      $_SERVER['REQUEST_TIME']);
define('REQUEST_METHOD',$_SERVER['REQUEST_METHOD']);
define('IS_GET',        REQUEST_METHOD =='GET' ? true : false);
define('IS_POST',       REQUEST_METHOD =='POST' ? true : false);
define('IS_PUT',        REQUEST_METHOD =='PUT' ? true : false);
define('IS_DELETE',     REQUEST_METHOD =='DELETE' ? true : false);
define('IS_AJAX', isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest');

define('DATA_AUTH_KEY' , 'CG;-U!t9pamevYo@x#&/H3NQ*}J$TIRDdBWE2MOz'); //默认数据加密KEY